package com.sdx.console.atnm.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.sdx.common.utils.Utils;
import lombok.Data;
import org.beetl.sql.core.annotatoin.AutoID;

import java.util.Date;

/* 
* 
* gen by Spring Boot2 Admin 2019-03-18
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class AtnmStatement extends BaseEntity{

    //自荐信ID
    @AutoID	
    private Integer mainId ;
	
    //自荐信标题
    private String headline ;
	
    //大学id
    private Integer univId ;
	
    //对应大学
    private String univName ;
	
    //专业id
    private Integer majorId ;
	
    //对应专业
    private String majorName ;
	
    //自荐信年份
    private Integer year ;
	
    //自荐信要求
    private String require ;
	
    //自荐信免费内容
    private String freeTrial ;
	
    //正文剩余字数
    private Integer remainWord ;
	
    //自荐信正文
    private String mainBody ;
	
    //全文字数
    private Integer wordCount ;
	
    //word下载链接
    private String wordUrl ;
	
    //是否免费，0，否，1，是
    private Integer isFree ;
	
    //创建人
    private Integer createdBy ;
	
    //创建人名称
    private String createdName ;
	
    //创建时间
    private Date createdTime ;
	
    //更新人
    private Integer updatedBy ;
	
    //更新人名称
    private String updatedName ;
	
    //更新时间
    private Date updatedTime ;
	
	public String getWordUrlLink(){
		return Utils.imageUrl(wordUrl);
	}

}
